package stu.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import stu.cms.pojo.dto.UserDTO;
import stu.cms.pojo.entity.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    IPage<User> pageWithConditions(@Param("page") Page<User> page, @Param("userDTO")UserDTO userDTO);
    List<User> list();
}
